package com.atguigu.tingshu.user.client;

import com.atguigu.tingshu.common.result.Result;
import com.atguigu.tingshu.model.user.VipServiceConfig;
import com.atguigu.tingshu.user.client.impl.UserInfoDegradeFeignClient;
import com.atguigu.tingshu.vo.account.AccountLockResultVo;
import com.atguigu.tingshu.vo.account.AccountLockVo;
import com.atguigu.tingshu.vo.user.UserInfoVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

/**
 * <p>
 * 产品列表API接口
 * </p>
 *
 * @author qy
 */
@FeignClient(value = "service-user",contextId = "userInfoFeignClient", fallback = UserInfoDegradeFeignClient.class,path = "/api/rpc/userinfo")
public interface UserInfoFeignClient {
    @GetMapping(value = "/getUserInfo/{userId}")
    Result<UserInfoVo> getUserInfo(@PathVariable(value = "userId") Long userId);
    @GetMapping(value = "/getUserPaidAlbumTrackList/{albumId}/{userId}")
    Result<Map<Long, String>> getUserPaidAlbumTrackList(@PathVariable(value = "albumId") Long albumId, @PathVariable(value = "userId") Long userId);
    @GetMapping(value = "/getUserPaidAlbum/{albumId}/{userId}")
    Result<Boolean> getUserPaidAlbum(@PathVariable(value = "albumId") Long albumId, @PathVariable(value = "userId") Long userId);
    @GetMapping("/getAllVipConfig/{itemId}")
    Result<VipServiceConfig> getAllVipConfig(@PathVariable(value = "itemId") Long itemId);

}